package com.huli.feign;

import com.huli.param.CarportParam;
import com.huli.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("server-carport")
public interface CarportFeign {
    @GetMapping("/carport/selectCarportById")
    Result selectCarportById(@RequestParam("carportId") Integer carportId);

    @GetMapping("/carport/selectAllCarport")
     Result selectAllCarport(@SpringQueryMap CarportParam carportParam);

    @GetMapping("/carport/selectGarage")
    Result selectGarage(@PathVariable("{carportId}") Integer carportId);
}
